package com.melody.model.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * @Author: hq
 * @Description: 搜索歌曲信息返回类
 * @DateTime: 2025-05-12 10:43
 **/
@TableName("music_info")
@Data
public class MusicSearchVo {
    @TableId
    private Long musicId;
    private String musicImg;
    private String musicUrl;
    private String musicName;
    private String singer;
    private Integer labelId;
    private Integer musicTime;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer isDelete;

    // 构造函数
    public MusicSearchVo(Long musicId, String musicImg, String musicUrl, String musicName,
                         String singer, Integer labelId, Integer musicTime, LocalDateTime createTime,
                         LocalDateTime updateTime, Integer isDelete) {
        this.musicId = musicId;
        this.musicImg = musicImg;
        this.musicUrl = musicUrl;
        this.musicName = musicName;
        this.singer = singer;
        this.labelId = labelId;
        this.musicTime = musicTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
    }
}
